#ifndef _BUZZER_H_
#define _BUZZER_H_



extern volatile uint8_t _buzzer_sound_nr;
extern volatile uint8_t _buzzer_delay;


#define BUZZER_START() { TCCR1A |= (1 << PWM1B); }
#define BUZZER_STOP() { TCCR1A &= ~(1 << PWM1B); }
#define BUZZER_PERIOD(x) { OCR1C = x; }
#define BUZZER_PULSE(x) { OCR1B = x; }


void buzzerSetup(void);
void buzzerLoop(void);



#endif  // ifndef _BUZZER_H_